#include <iostream>
#include <list>
#include "list.hpp"
#include "string.hpp"
using namespace std;

int main(){
  std::list< std::pair<int, Mystring> > mylist;
  mylist.emplace_back(10, "sort");
  cout << "-------------------------------------------" << endl;
  mylist.emplace_back(make_pair(20, "sort"));
  cout << "-------------------------------------------" << endl;
  mylist.push_back(make_pair(30, "sort"));
  cout << "-------------------------------------------" << endl;
  mylist.push_back({ 40, "sort"});
  cout << "-------------------------------------------" << endl;
  return 0;
}

//int main(){
//  std::list< Mystring > mylist;
//  Mystring str1 = "abc";
//  Mystring str2 = "def";
//  cout << "===========================================" << endl;
//  mylist.emplace_back(str1);
//  cout << "===========================================" << endl;
//  mylist.push_back(str1);
//  cout << "===========================================" << endl;
//  mylist.emplace_back(move(str1));
//  cout << "===========================================" << endl;
//  mylist.push_back(move(str2));
//  cout << "===========================================" << endl;
//  mylist.emplace_back("sort");
//  cout << "===========================================" << endl;
//  mylist.push_back("sort");
//  cout << "===========================================" << endl;
//  return 0;
//}
//
